<template>
  <div>
    <div>
      <el-button @click="mocktianchong">mock填充</el-button>
    </div>
    <el-form :model="formData" :inline="true" label-width="auto">
      
      <el-form-item
        label="id"
        prop="id"
        data-type="bigint"
      >
        
        <el-input
          placeholder="id"
          style="width: 120px"
          v-model="formData['id']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="anchor_id"
        prop="anchor_id"
        data-type="bigint"
      >
        
        <el-input
          placeholder="anchor_id"
          style="width: 120px"
          v-model="formData['anchor_id']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="anchor_code"
        prop="anchor_code"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="anchor_code"
          style="width: 120px"
          v-model="formData['anchor_code']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="shop_code"
        prop="shop_code"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="shop_code"
          style="width: 120px"
          v-model="formData['shop_code']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="platform"
        prop="platform"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="platform"
          style="width: 120px"
          v-model="formData['platform']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="star_time"
        prop="star_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="star_time"
          style="width: 120px"
          v-model="formData['star_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="end_time"
        prop="end_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="end_time"
          style="width: 120px"
          v-model="formData['end_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="fans_num"
        prop="fans_num"
        data-type="bigint"
      >
        
        <el-input
          placeholder="fans_num"
          style="width: 120px"
          v-model="formData['fans_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="gmv"
        prop="gmv"
        data-type="bigint"
      >
        
        <el-input
          placeholder="gmv"
          style="width: 120px"
          v-model="formData['gmv']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="gpm"
        prop="gpm"
        data-type="bigint"
      >
        
        <el-input
          placeholder="gpm"
          style="width: 120px"
          v-model="formData['gpm']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="refund_money"
        prop="refund_money"
        data-type="bigint"
      >
        
        <el-input
          placeholder="refund_money"
          style="width: 120px"
          v-model="formData['refund_money']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="watch_num"
        prop="watch_num"
        data-type="bigint"
      >
        
        <el-input
          placeholder="watch_num"
          style="width: 120px"
          v-model="formData['watch_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="transaction_rate"
        prop="transaction_rate"
        data-type="bigint"
      >
        
        <el-input
          placeholder="transaction_rate"
          style="width: 120px"
          v-model="formData['transaction_rate']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="user_value"
        prop="user_value"
        data-type="bigint"
      >
        
        <el-input
          placeholder="user_value"
          style="width: 120px"
          v-model="formData['user_value']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="exposure_num"
        prop="exposure_num"
        data-type="bigint"
      >
        
        <el-input
          placeholder="exposure_num"
          style="width: 120px"
          v-model="formData['exposure_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="free_watch_num"
        prop="free_watch_num"
        data-type="bigint"
      >
        
        <el-input
          placeholder="free_watch_num"
          style="width: 120px"
          v-model="formData['free_watch_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="pay_watch_num"
        prop="pay_watch_num"
        data-type="bigint"
      >
        
        <el-input
          placeholder="pay_watch_num"
          style="width: 120px"
          v-model="formData['pay_watch_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="strike_num"
        prop="strike_num"
        data-type="bigint"
      >
        
        <el-input
          placeholder="strike_num"
          style="width: 120px"
          v-model="formData['strike_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="avg_online"
        prop="avg_online"
        data-type="bigint"
      >
        
        <el-input
          placeholder="avg_online"
          style="width: 120px"
          v-model="formData['avg_online']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="max_online"
        prop="max_online"
        data-type="bigint"
      >
        
        <el-input
          placeholder="max_online"
          style="width: 120px"
          v-model="formData['max_online']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="live_exposure_num"
        prop="live_exposure_num"
        data-type="bigint"
      >
        
        <el-input
          placeholder="live_exposure_num"
          style="width: 120px"
          v-model="formData['live_exposure_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="deal_num"
        prop="deal_num"
        data-type="bigint"
      >
        
        <el-input
          placeholder="deal_num"
          style="width: 120px"
          v-model="formData['deal_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="goods_exposure_num"
        prop="goods_exposure_num"
        data-type="bigint"
      >
        
        <el-input
          placeholder="goods_exposure_num"
          style="width: 120px"
          v-model="formData['goods_exposure_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="goods_click_num"
        prop="goods_click_num"
        data-type="bigint"
      >
        
        <el-input
          placeholder="goods_click_num"
          style="width: 120px"
          v-model="formData['goods_click_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="interact_num"
        prop="interact_num"
        data-type="bigint"
      >
        
        <el-input
          placeholder="interact_num"
          style="width: 120px"
          v-model="formData['interact_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="comment_num"
        prop="comment_num"
        data-type="bigint"
      >
        
        <el-input
          placeholder="comment_num"
          style="width: 120px"
          v-model="formData['comment_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="likes_num"
        prop="likes_num"
        data-type="bigint"
      >
        
        <el-input
          placeholder="likes_num"
          style="width: 120px"
          v-model="formData['likes_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="share_num"
        prop="share_num"
        data-type="bigint"
      >
        
        <el-input
          placeholder="share_num"
          style="width: 120px"
          v-model="formData['share_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="new_fans"
        prop="new_fans"
        data-type="bigint"
      >
        
        <el-input
          placeholder="new_fans"
          style="width: 120px"
          v-model="formData['new_fans']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="fans_pay_ratio"
        prop="fans_pay_ratio"
        data-type="bigint"
      >
        
        <el-input
          placeholder="fans_pay_ratio"
          style="width: 120px"
          v-model="formData['fans_pay_ratio']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="purchase_fans"
        prop="purchase_fans"
        data-type="bigint"
      >
        
        <el-input
          placeholder="purchase_fans"
          style="width: 120px"
          v-model="formData['purchase_fans']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="purchase_nonfans"
        prop="purchase_nonfans"
        data-type="bigint"
      >
        
        <el-input
          placeholder="purchase_nonfans"
          style="width: 120px"
          v-model="formData['purchase_nonfans']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="nonpurchase_fans"
        prop="nonpurchase_fans"
        data-type="bigint"
      >
        
        <el-input
          placeholder="nonpurchase_fans"
          style="width: 120px"
          v-model="formData['nonpurchase_fans']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="nonpurchase_nonfans"
        prop="nonpurchase_nonfans"
        data-type="bigint"
      >
        
        <el-input
          placeholder="nonpurchase_nonfans"
          style="width: 120px"
          v-model="formData['nonpurchase_nonfans']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="interact_ratio"
        prop="interact_ratio"
        data-type="bigint"
      >
        
        <el-input
          placeholder="interact_ratio"
          style="width: 120px"
          v-model="formData['interact_ratio']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="attention_ratio"
        prop="attention_ratio"
        data-type="bigint"
      >
        
        <el-input
          placeholder="attention_ratio"
          style="width: 120px"
          v-model="formData['attention_ratio']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="live_folw_ratio"
        prop="live_folw_ratio"
        data-type="bigint"
      >
        
        <el-input
          placeholder="live_folw_ratio"
          style="width: 120px"
          v-model="formData['live_folw_ratio']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="attention_flow_ratio"
        prop="attention_flow_ratio"
        data-type="bigint"
      >
        
        <el-input
          placeholder="attention_flow_ratio"
          style="width: 120px"
          v-model="formData['attention_flow_ratio']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="video_flow_ratio"
        prop="video_flow_ratio"
        data-type="bigint"
      >
        
        <el-input
          placeholder="video_flow_ratio"
          style="width: 120px"
          v-model="formData['video_flow_ratio']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="shop_flow_ratio"
        prop="shop_flow_ratio"
        data-type="bigint"
      >
        
        <el-input
          placeholder="shop_flow_ratio"
          style="width: 120px"
          v-model="formData['shop_flow_ratio']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="other_flow_ratio"
        prop="other_flow_ratio"
        data-type="bigint"
      >
        
        <el-input
          placeholder="other_flow_ratio"
          style="width: 120px"
          v-model="formData['other_flow_ratio']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="shopwindow_flow_ratio"
        prop="shopwindow_flow_ratio"
        data-type="bigint"
      >
        
        <el-input
          placeholder="shopwindow_flow_ratio"
          style="width: 120px"
          v-model="formData['shopwindow_flow_ratio']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="freeflow_flow_ratio"
        prop="freeflow_flow_ratio"
        data-type="bigint"
      >
        
        <el-input
          placeholder="freeflow_flow_ratio"
          style="width: 120px"
          v-model="formData['freeflow_flow_ratio']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="riverflow_pc_flow_ratio"
        prop="riverflow_pc_flow_ratio"
        data-type="bigint"
      >
        
        <el-input
          placeholder="riverflow_pc_flow_ratio"
          style="width: 120px"
          v-model="formData['riverflow_pc_flow_ratio']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="new_buy_bunch"
        prop="new_buy_bunch"
        data-type="int"
      >
        
        <el-input
          placeholder="new_buy_bunch"
          style="width: 120px"
          v-model="formData['new_buy_bunch']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="product_click_pay_ucnt_ratio"
        prop="product_click_pay_ucnt_ratio"
        data-type="bigint"
      >
        
        <el-input
          placeholder="product_click_pay_ucnt_ratio"
          style="width: 120px"
          v-model="formData['product_click_pay_ucnt_ratio']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="avg_watch_duration"
        prop="avg_watch_duration"
        data-type="int"
      >
        
        <el-input
          placeholder="avg_watch_duration"
          style="width: 120px"
          v-model="formData['avg_watch_duration']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="watch_cnt_show_ratio"
        prop="watch_cnt_show_ratio"
        data-type="bigint"
      >
        
        <el-input
          placeholder="watch_cnt_show_ratio"
          style="width: 120px"
          v-model="formData['watch_cnt_show_ratio']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="pay_cnt"
        prop="pay_cnt"
        data-type="int"
      >
        
        <el-input
          placeholder="pay_cnt"
          style="width: 120px"
          v-model="formData['pay_cnt']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="buyin_gmv"
        prop="buyin_gmv"
        data-type="int"
      >
        
        <el-input
          placeholder="buyin_gmv"
          style="width: 120px"
          v-model="formData['buyin_gmv']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="remarks"
        prop="remarks"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="remarks"
          style="width: 120px"
          v-model="formData['remarks']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="tenant_type"
        prop="tenant_type"
        data-type="tinyint"
      >
        
        <el-input
          placeholder="tenant_type"
          style="width: 120px"
          v-model="formData['tenant_type']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="tenant_id"
        prop="tenant_id"
        data-type="bigint"
      >
        
        <el-input
          placeholder="tenant_id"
          style="width: 120px"
          v-model="formData['tenant_id']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="del_state"
        prop="del_state"
        data-type="tinyint"
      >
        
        <el-input
          placeholder="del_state"
          style="width: 120px"
          v-model="formData['del_state']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="add_user"
        prop="add_user"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="add_user"
          style="width: 120px"
          v-model="formData['add_user']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="add_user_id"
        prop="add_user_id"
        data-type="bigint"
      >
        
        <el-input
          placeholder="add_user_id"
          style="width: 120px"
          v-model="formData['add_user_id']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="add_time"
        prop="add_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="add_time"
          style="width: 120px"
          v-model="formData['add_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="edit_user"
        prop="edit_user"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="edit_user"
          style="width: 120px"
          v-model="formData['edit_user']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="edit_user_id"
        prop="edit_user_id"
        data-type="bigint"
      >
        
        <el-input
          placeholder="edit_user_id"
          style="width: 120px"
          v-model="formData['edit_user_id']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="last_edit_time"
        prop="last_edit_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="last_edit_time"
          style="width: 120px"
          v-model="formData['last_edit_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="server_number"
        prop="server_number"
        data-type="smallint"
      >
        
        <el-input
          placeholder="server_number"
          style="width: 120px"
          v-model="formData['server_number']"
        ></el-input>
        
      </el-form-item>
      
    </el-form>
  </div>
</template>
<script>
  import { dateFormatYYYYMMDDHHmmss, isIOS } from '@/utils'
  import { alertWithPaylod } from '@/utils/alertUtils';

import axios from "axios";
export default {
  data() {
    return {
      formData: {},
    };
  },
  methods: {
    mocktianchong,
    initByDialog(_data) {
      if (_data && _data.id) {

        
           
        
           
        
           
        
           
        
           
        
           
            _data['star_time']=dateFormatYYYYMMDDHHmmss(_data['star_time'])
           
        
           
            _data['end_time']=dateFormatYYYYMMDDHHmmss(_data['end_time'])
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
            _data['add_time']=dateFormatYYYYMMDDHHmmss(_data['add_time'])
           
        
           
        
           
        
           
            _data['last_edit_time']=dateFormatYYYYMMDDHHmmss(_data['last_edit_time'])
           
        
           
        


        this.formData = _data;
      }
    },
    async submitByDialog() {
      var params = this.formData;
      var resylt = await axios
        .post("/api/live_anchor_live_list/apis", {
          _name: "addorupdate",
          ...params,
        })
        .then((res) => res.data);
      console.log("resylt :", resylt);
      alertWithPaylod(resylt)

      return resylt;
    },
  },
};
</script>
